#!/usr/bin/python

# License:
#
#       PyGnosis, a tiny MVC framework with a stateless message bus
#       Copyright (C) 2011  Daniel Azulay
#
#       This program is free software: you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation, either version 3 of the License, or
#       (at your option) any later version.
#
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#
#       You should have received a copy of the GNU General Public License
#       along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#
# Information:
#
#       PyGnosis is a light weight MVC framework for rapid application development in python.
#       It features a pseudo-messagebus and holds a number of classes 
#       that make adhering to the MVC paradigm a piece of cake.
#
#       Use the PyGnosis class to set your application globals and use the Model and View classes 
#       to implement your application.
#
#       The View is currently set up to drop the user to a command shell, but you can replace
#       the call to Shell() by your own view implementation. The only variable that the Shell
#       class can directly modify is the global DEBUG which sets debug mode on or off. If you
#       plan on expanding the command library, please have each keyword trigger a call to
#       objMessageBus.broadcast() with the message you wish to broadcast as string.
#       The MessageBus instance will automatically notify listening classes as a result. All
#       you need to do is write code in the appropriate classes to interpret incoming messages.
#


import sys, gc, base_classes

if __name__ == '__main__':

	gc.enable()

	base_classes.PyGnosis() # Start the program

	gc.collect()
